<%if object.class==Incumbent -%> <% @category=1 -%>
<%elsif object.class==Report -%> <% @category=2 -%> <%elsif object.class==Company -%>
<% @category=3 -%> <%else -%> <% @category=4 -%><%end -%><%= form_remote_tag :url=>{:controller=>"info",:action=>"create_comment",:id=>object.id,:category=>@category},
                        :update=>"commentList",
                        :position=>"bottom"%>
<table width="500" border="0" cellpadding="0"
	cellspacing="0">
	<tr>
		<td class="medgray" width="70" valign="middle"><strong>标题：</strong></td>
		<td><%=commenttitle_tag(object)%></td>
	</tr>
	<tr>
		<td class="medgray" valign="middle"><strong>内容：</strong></td>
		<td><%=text_area 'comment', 'body', :style=>"width:430px;height:200px" %></td>
	</tr>
	<tr>
		<td class="medgray" align="right" colspan="2">反垃圾算术题: <img
			id="validation"
			src='<%= url_for(:controller=>"index",:action=>"postvalidation")%>' /><%= text_field_tag 'validation',@params[:validation],:size=>"5", 
                                        :onMouseOver=>"this.style.backgroundColor = '#E5F0FF';",
                                        :onMouseOut=>"this.style.backgroundColor = '';"%>
		<%= submit_tag "写好了",:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%></td>
	</tr>
</table>
<%= end_form_tag%>

